package com.zlsy.springbootdemo.classinit;

/**
 * @author zhouliang
 * @date 2021/01/13
 **/
public class Test {
    public static void main(String[] args) {
        //测试类的加载顺序：初始化构造类，再加载static
//        MyClassA instance = MyClassA.getInstance();
//        int a = instance.getA();
//        int b = instance.getB();
//        System.out.println(a);
//        System.out.println(b);

        System.out.println(MyChild.str);
    }
}
